var rootPath = getRootPath();

$(function() {
	$.ajax({
		url : rootPath + "/userDetailFront/queryDetailInfo",
		method : "GET",
		success : function(data) {
			if(data.returnCode == '0000') {
				if(data.returnObject != null) {
					var obj = data.returnObject;
					$("#receiver").text(obj.receiver);
					$("#phone").text(obj.phone);
					$("#detailArea").text(getDetailArea(obj.province, obj.city, obj.area));
					$("#address").text(obj.address);
				}
			}
		},
		error: function (jqXHR, textStatus, errorThrown) {
			layer.alert("error");
		}
	});
	
	$("#modify").click(function() {
		parent.$("#content").prop("src","address.html");
	});
});